﻿using System;
using System.ComponentModel.DataAnnotations;
using OSharp.Core.Data;
using OSharp.Demo.Models.System;

namespace OSharp.Demo.Dtos.System
{
    public class DictItemInputDto : IInputDto<Guid>
    {
        public Guid Id { get; set; }
        /// <summary>
        /// 编码
        /// </summary>
        [Required, StringLength(50)]
        public string Code { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        [Required, StringLength(100)]
        public string Name { get; set; }

        /// <summary>
        /// 字典类型
        /// </summary>
        [Required]
        public virtual Guid DictTypeId { get; set; }

        /// <summary>
        /// 字典值
        /// </summary>
        [Required]
        public string Value { get; set; }

        /// <summary>
        /// 扩展1
        /// </summary>
        [StringLength(100)]
        public string Reserve1 { get; set; }

        /// <summary>
        /// 扩展2
        /// </summary>
        [StringLength(100)]
        public string Reserve2 { get; set; }

        /// <summary>
        /// 扩展3
        /// </summary>
        [StringLength(100)]
        public string Reserve3 { get; set; }

        /// <summary>
        /// 描述
        /// </summary>
        [StringLength(500)]
        public string Remark { get; set; }
    }
}
